home *** CD-ROM | disk | FTP | other *** search
- Subject: Externalize/Internalize Problem
- Sent: 7/24/96 10:42 AM
- Received: 7/24/96 9:55 AM
- From: Paul Mylchreest, paulm@teamsoft.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Dear ODF team,
-
- My Externalize/Internalize is in two steps.
-
- void CMyContent::Externalize(...)
- {
- ExternalizeProxyList(ev, storageUnit, cloneInfo);
- ExternalizeMyData(ev, storageUnit, cloneInfo);
- }
-
- FW_Boolean CMyContent::Internalize(...)
- {
- FW_Boolean bResult = false;
-
- if (storageUnit->Exists(ev, kODPropContents, fMyPart->GetPartKind(ev), 0))
- {
- InternalizeProxyList(ev, storageUnit, cloneInfo);
- InternalizeMyData(ev, storageUnit, cloneInfo);
- //....
- bResult = true;
- }
- return bResult;
- }
-
- Like ODFDraw, in ExternalizeProxyList(), I write out the proxy count and
- read it in InternalizeProxyList(). Now, the problem. When I read in the
- count, it is garbage instead of zero. BTW, this does not happen when I do
- not call ExternalizeMyData() and InternalizeMyData().
-
- This also does not happen if I do this process in only one step and use the
- same stream for the proxy list and the data.
-
- What am I doing wrong?
-
- Thank you!
-
-
- ______________________________________________________________________
- Paul Mylchreest paulm@teamsoft.com
- Teamsoft, Inc.
- ______________________________________________________________________
-
-
-